﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MyWeb.handler
{
    /// <summary>
    /// loginHander 的摘要说明
    /// </summary>
    public class loginHander : IHttpHandler
    {
        private MyBLL.user.userBLL userBLL = new MyBLL.user.userBLL();

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            MyModel.user.user user = new MyModel.user.user();
            user.Username = "test";
            user.Password = "123";
            user.Roleid = 2;
            userBLL.addUser(user);
            context.Response.Write("1");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}